package io.gitee.zhangbinhub.acp.core.common.security

/**
 * @since JDK 17
 */
object Md5Encrypt {

    /**
     * 加密
     *
     * @param plainText 待加密字符串
     * @return 密文
     */
    @JvmStatic
    @Throws(Exception::class)
    @JvmOverloads
    fun encrypt(
        plainText: String,
        inputEncode: ByteEncodeEnum = ByteEncodeEnum.BYTE,
        outputEncode: ByteEncodeEnum = ByteEncodeEnum.HEX
    ): String = SignatureEncrypt.encrypt(plainText, SignatureEncrypt.MD5, inputEncode, outputEncode)
}
